how to write a list to csv c#

113

how to write a list to csv c# -

File.WriteAllLines("text.txt", lst.Select(x => string.Join(",", x)));

Comments

Submit
0 Comments